<html {$html_attrs}>
<head>
<title>Permissions</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#height100{$id} {height:auto;padding:10px;}
/*#search_block{$id} div {padding:5px 7px;}*/
#global_block{$id} {padding:5px 12px;/*min-height:800px;*/ border: 1px solid #516C81;}
#search_block_center{$id} {padding:3px 5px;text-align:center;}
#center_block{$id} {text-align:center;padding:4px;}
#center_block_caption{$id} {text-align:center;padding:4px;}
#left_block{$id} { position:absolute;width:202px; {BEGIN RTL_block} right:20px;{END RTL_block}{BEGIN LTR_block} left:20px;{END LTR_block} overflow:visible; margin-top:10px}
#right_block{$id} { padding:10px 0px 0px 0px;}
{BEGIN shiftstyle_block}
#right_block{$id} {padding-left:220px;{BEGIN RTL_block}padding-left:0px;padding-right:220px;{END RTL_block}}
{END shiftstyle_block}
#toplinks_block{$id} {padding:0 5px 5px 5px;}
#toplinks_block{$id} > * {margin:4px 6px;vertical-align:middle;}
#menu_block{$id} {clear:left;padding:5px 0px; width:auto;}
#details_block{$id}, #pages_block{$id}, .rppBlock {white-space:nowrap;padding:5px 7px;text-align:center;}
#recordcontrols_block{$id} {padding:13px 10px 9px 10px;text-align:left}
#record_controls{$id} > *,#newrecord_controls{$id} > * {margin:2px 2px;vertical-align:middle}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.menuitem {padding:6px 18px 10px 13px}
.menuitem_active {padding:6px 18px 11px 13px}
.message_block {text-align:center;}
.grid_recordheader {padding-top:5px;}
.grid_recordheader a {margin:0 5px;}
#grid_block{$id} {margin-top:10px;}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
body{margin:0px;padding:0px;}

#searchPanelContainer{$id}{
	width: 200px

}

/*report styles*/
#export_links{$id} * {padding:0}
</style>
{END style_block}
<!--[if IE]>
{BEGIN iestyle_block}
<style>
#right_block{$id} { width:100%}
.list_table, .list_table1,.grid  {height:100%;}
</style>
{END iestyle_block}
<![endif]-->
</head>

<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
{$header}
<div id="height100{$id}">
<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>
{BEGIN toplinks_block}
<div id="toplinks_block{$id}" class="upeditmenu">
<span><font style="FONT-FAMILY: Verdana, Arial;">Logged on as</font>&nbsp;<b>{$username}</b>&nbsp;</span>
<span class=buttonborder><input type=button class=button value="Log out" {$logoutlink_attrs}></span>

{BEGIN exitadminarea_link}
<span class=buttonborder><input type=button class=button value="Exit Admin Area" {$exitaalink_attrs}></span>
{END exitadminarea_link}








</div>
{END toplinks_block}

<div class="main_table_border2 main_table" id="global_block{$id}">
{BEGIN left_block}
<div id="left_block{$id}" >
    <b class="xtop"><b class="xb1b1"></b><b class="xb2b1"></b><b class="xb3b1"></b><b class="xb4b1"></b></b>
	<!-- MenuBegin -->
{BEGIN menu_block}
<div class="menu_table" id="menu_block{$id}">
    <div  class="adminAreaMenuItem">
		<span>
 <img alt=" " src="include/img/arrow_search2.gif" border=0> 
        </span>
        <span>&nbsp;&nbsp;<a {$admin_rights_tablelink_attrs}  class="highlight-tablesearch" >
Permissions
        </a></span>
	</div>
    <div  class="adminAreaMenuItem">
		<span>
 <img alt=" " src="include/img/arrow_search.gif" border=0> 
        </span>
        <span>&nbsp;&nbsp;<a {$admin_members_tablelink_attrs}  class="tablelinkssearch">
Assign users to groups
        </a></span>
	</div>
    <div  class="adminAreaMenuItem">
		<span>
 <img alt=" " src="include/img/arrow_search.gif" border=0> 
        </span>
        <span>&nbsp;&nbsp;<a {$admin_users_tablelink_attrs}  class="tablelinkssearch">
Add/Edit users
        </a></span>
	</div>
</div>
{END menu_block}
		
	<!-- MenuEnd -->	
	{BEGIN search_records_block}
	<div>
        		
        <div class="menu_table2">
						{BEGIN recordspp_block}
			<div class="menu_text blackshade rppBlock" align="center">
							{$recsPerPage}
            </div>
			{END recordspp_block}
        </div>
	</div>
	{END search_records_block}
</div>
{END left_block}

    <div id="right_block{$id}">
        
        
        <div class="list_table1" >
        <div class="list_table">
        
        <div class=blackshade2 id="center_block_caption{$id}">
        Permissions
        </div>
        {BEGIN recordcontrols_block}
        <div class=blackshade id="recordcontrols_block{$id}">
			
		{$lookupSearchControls}
		
		{BEGIN record_controls}
		<span id="record_controls{$id}">
        
        
        
        
        		</span>
		{END record_controls}
        </div>
        {END recordcontrols_block}
		<div class="message" id="usermessage{$id}">{$user_message}</div>

{BEGIN savebuttons_block}
<div id="savebuttons_block" style="margin:5px 0">
<input type=submit style="width:100pt" class="button" value="Save" {$savebutton_attrs}>
<input type=reset style="width:100pt" class="button" value="Reset" {$resetbutton_attrs}>
</div>
{END savebuttons_block}

{BEGIN rights_block}
<!--Permissions-->
<table border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td class="headerlist" width="200px" style="vertical-align:top;padding:5px;" aling="center">
  Usergroup:<br><br>
  <input class="button" type="button" value="Add group" {$addgroup_attrs}>
  <input class="button" type="button" value="Del group" {$delgroup_attrs} >
  <input class="button" type="button" id="rengroup" value="Rename" {$rengroup_attrs}>
  <div style="display:none;margin:5px;margin-top:15px;margin-bottom:15px;border:solid white 1px" id=addarea>
   <br><span id="gmessage">Add new group:</span><br>
   <input type="text" id="groupname" size=20 maxsize=50 {$groupname_attrs} ><br>
   <input type="button" class="button" value="Save" {$savegroup_attrs}>
   <input type="button" class="button" value="Cancel" {$cancelgroup_attrs}><br><br>
  </div>
  <br><br><br>
  <select class=shade style="width:120pt" {$grouplist_attrs}>
   {BEGIN groups}
    <option {$group_attrs}>{$groupname}</option>
   {END groups}
  </select><br><br>
 </td>
 <td align="center" valign="top">
  {BEGIN grid_block}
  <div id="grid_block{$id}" style="margin:0px;">
   <table name="maintable" align="center" class="data" cellspacing=0 cellpadding=5 border=0>
    <colgroup><col align=left><col width="90pt" span=7 align=center></colgroup>
    <!-- table header -->
	<tr  valign="top">
	 <td style="width:100pt" class="headerlist">Tables</td>
	 <td class="headerlist">
	  Add
	  <br><br><input type=checkbox {$add_headcheckbox}>
     </td>
     <td class="headerlist">
      Edit<br><br>
	  <input type=checkbox {$edt_headcheckbox}>
     </td>
     <td class="headerlist">
      Delete
      <br><br><input type=checkbox {$del_headcheckbox}>
     </td>
     <td class="headerlist">
      List/View
      <br><br><input type=checkbox {$lst_headcheckbox}>
     </td>
     <td class="headerlist">
      Print/Export
      <br><br><input type=checkbox {$exp_headcheckbox}>
     </td>
     <td class="headerlist">
      Import
      <br><br><input type=checkbox {$imp_headcheckbox}>
     </td>
     <td class="headerlist" style="white-space:nowrap">
      Admin mode<br>(access to all records)
      <br><input type=checkbox {$adm_headcheckbox}>
     </td>
    </tr>
    {BEGIN grid_row}
    <tr valign="top" {$rowattrs}>
     <td style="text-align:left" valign="middle" class="headerlist">
	  <input type="checkbox" {$tablecheckbox_attrs} align="absmiddle">&nbsp;{$tablename}
     </td>
     <td align="center" valign="middle">
	  {BEGIN add_groupboxes}
	   <input type=checkbox {$add_checkbox}>
	  {END add_groupboxes}
	 </td>
     <td align="center" valign="middle">
	  {BEGIN edt_groupboxes}
	   <input type=checkbox {$edt_checkbox}>
	  {END edt_groupboxes}
	 </td>
	 <td align="center" valign="middle">
	  {BEGIN del_groupboxes}
	   <input type=checkbox {$del_checkbox}>
	  {END del_groupboxes}
	 </td>
	 <td align="center" valign="middle">
      {BEGIN lst_groupboxes}
	   <input type=checkbox {$lst_checkbox}>
	  {END lst_groupboxes}
	 </td>
     <td align="center" valign="middle">
	  {BEGIN exp_groupboxes}
	   <input type=checkbox {$exp_checkbox}>
	  {END exp_groupboxes}
     </td>
     <td align="center" valign="middle">
	  {BEGIN imp_groupboxes}
	   <input type=checkbox {$imp_checkbox}>
	  {END imp_groupboxes}
	 </td>
	 <td align="center" valign="middle">
	  {BEGIN adm_groupboxes}
	   <input type=checkbox {$adm_checkbox}>
	  {END adm_groupboxes}
	 </td>
    </tr>
    {END grid_row}
   </table>
   </div>
  {END grid_block}
  </td>
 </tr>
</table>
{END rights_block}

{BEGIN message_block}
<div id="message_block{$id}" class="xboxcontentb message_block">
	{$message}
</div>
{END message_block}

{BEGIN pagination_block}
<div id="pagination_block{$id}" class="xboxcontentb message_block">{$pagination}</div>
{END pagination_block}

</div>
</div>
</div>
</div>
<b class="xbottom"><b class="xb4b"></b><b class="xb3b"></b><b class="xb2b"></b><b class="xb1b"></b></b>
</div>
{$footer}
{END body}
</body>
</html>

